﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品表
    /// </summary>
    public partial class corecmsfoodimport
    {

        /// <summary>
        /// 规格名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodSpecName { get; set; }

        /// <summary>
        /// 序列
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 id { get; set; }


        /// <summary>
        /// 品牌id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 门店id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 storeId { get; set; }


        /// <summary>
        /// 商品分类名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodTypeName { get; set; }

        /// <summary>
        /// 出品部门名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string departName { get; set; }


        /// <summary>
        /// 商品分类id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 foodTypeId { get; set; }

        /// <summary>
        /// 默认规格id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 foodSpecId { get; set; }

        /// <summary>
        /// 商品类型(1.普通菜；2.套菜；3.线下临时菜；4.打包盒)
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 type { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String number { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String name { get; set; }

        /// <summary>
        /// 商品别名
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String byName { get; set; }

        /// <summary>
        /// 支持业务类型可多选（1.堂食；2.外卖；3.自提；）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String businessType { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public object businessObject { get; set; }
        /// <summary>
        /// 商品状态(1在售；2停售；0尚未起售)
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 sellStatus { get; set; }

        /// <summary>
        /// 是否多规格
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool specFlag { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool isDelete { get; set; }

        /// <summary>
        /// 是否称重
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool? isHeft { get; set; }

        /// <summary>
        /// 数字助记码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String helpCode { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String pinYin { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? warrantyValue { get; set; }

        /// <summary>
        /// 保质期单位（0天；1年；2月；3小时；4分钟）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? warrantyType { get; set; }

        /// <summary>
        /// 是否需要打印
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool? isPrint { get; set; }

        /// <summary>
        /// 后台出品档口
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String gearOpening { get; set; }

        /// <summary>
        /// 收银端是否允许改价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool? isChangePrice { get; set; }

        /// <summary>
        /// 收银端是否允许打折
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool? isDiscount { get; set; }

        /// <summary>
        /// 最低折扣
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal? minDiscount { get; set; }

        /// <summary>
        /// 起售份数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? upSell { get; set; }

        /// <summary>
        /// 增量售卖
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? addSell { get; set; }

        /// <summary>
        /// 出品部门
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String division { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String image { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String remark { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64? modifyTime { get; set; }

        /// <summary>
        /// 商品详情
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public corecmsfooddetail detail { get; set; }

        /// <summary>
        /// 商品规格
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfoodspec> speclist { get; set; }

        /// <summary>
        /// 商品做法
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfooddetailtask> tasklist { get; set; }

        /// <summary>
        /// 商品加料
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfooddetailfeed> feedlist { get; set; }

        /// <summary>
        /// 商品套餐
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<corecmsfoodpack> packlist { get; set; }

        /// <summary>
        /// 零售价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal posPrice { get; set; }


        /// <summary>
        /// 会员价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal vipPrice { get; set; }
    }

    public partial class corecmsfooddetail
    {
        /// <summary>
        /// 商品id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 foodId { get; set; } = 0;

        /// <summary>
        /// 品牌id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 corpId { get; set; } = 0;


        /// <summary>
        /// 门店id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 storeId { get; set; } = 0;


        /// <summary>
        /// 是否称重
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isHeft { get; set; } = true;


        /// <summary>
        /// 数字助记码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String helpCode { get; set; }


        /// <summary>
        /// 拼音助记码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String pinYin { get; set; }


        /// <summary>
        /// 保质期
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 warrantyValue { get; set; } = 0;

        /// <summary>
        /// 保质期
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 warrantyType { get; set; } = 0;

        /// <summary>
        /// 是否需要打印
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isPrint { get; set; } = false;


        /// <summary>
        /// 后台出品档口
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String gearOpening { get; set; }


        /// <summary>
        /// 收银端是否允许改价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isChangePrice { get; set; }


        /// <summary>
        /// 收银端是否允许打折
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isDiscount { get; set; }

        /// <summary>
        ///最低折扣 
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Decimal minDiscount { get; set; }

        /// <summary>
        /// 起售份数
        /// </summary>
        [SugarColumn(IsIgnore = true)]

        public System.Int32 upSell { get; set; } = 0;

        /// <summary>
        /// 增量售卖数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int32 addSell { get; set; } = 0;

        /// <summary>
        /// 出品部门
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String division { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String image { get; set; }

        /// <summary>
        /// 手机端图片是否展示
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Boolean isShow { get; set; }

        /// <summary>
        /// 商品角标
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String subscript { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String remark { get; set; }

        /// <summary>
        /// 商品详细描述
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String remarkDetail { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.DateTime createTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.DateTime? updateTime { get; set; }

        /// <summary>
        /// 出品部门ID
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.Int64 departId { get; set; }


        /// <summary>
        /// 出品部门名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public System.String departName { get; set; }
    }
}
